package com.spring.demo.core.dao;

import java.util.List;

import com.spring.demo.core.entity.Ping;

/**
 * ping dao
 * 
 * @author sean
 * 
 */
public interface IPingDao extends IBaseDao {

	/**
	 * 保存ping
	 * 
	 * @param ping
	 * @return
	 */
	Ping saveOrUpdatePing(Ping ping);

	/**
	 * 根据id查询ping
	 * 
	 * @param id
	 * @return
	 */
	Ping findPingById(Long id);

	/**
	 * 查询所有ping
	 * 
	 * @return
	 */
	List<Ping> getPings();

	/**
	 * 根据id删除ping
	 * 
	 * @param id
	 * @return
	 */
	boolean deletePingById(Long id);

}
